package liangtWorkSpace.validation.base;

import lombok.Data;
import org.hibernate.validator.constraints.NotEmpty;

import javax.validation.groups.Default;

/**
 * @ClassName GroupStudent
 * @Description : 功能说明
 * @Author : LiangT
 * @Date : 2020/4/24 16:42
 */
@Data
public class GroupStudent {

    @NotEmpty(groups = Create.class)
    private String name;
    @NotEmpty(groups = Update.class)
    private String motto;
    @NotEmpty(groups = {Create.class,Update.class})
    private String hobby;
    @NotEmpty(groups = Default.class)
    private String idNo;
    @NotEmpty
    private String address;
}
